package cn.yunbamboos.token.deserializer;

import com.alibaba.fastjson2.JSON;
import io.jsonwebtoken.io.AbstractDeserializer;

import java.io.Reader;
import java.util.Map;

public class TokenDeserializer extends AbstractDeserializer<Map<String,?>> {

    @Override
    protected Map<String,?> doDeserialize(Reader reader) throws Exception {
        return JSON.parseObject(reader);
    }

}
